package com.lcw.lostandfound.mapper;

import com.lcw.lostandfound.pojo.Thank;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ThankMapper {
    List<Thank> findAllThank();
    List<Thank> findWallsThank();
    int insertThank(Thank thank);
    Thank findByTitle(String title);
    Thank findById(Integer id);

    @Delete({"delete from t_thank where id=#{id}"})
    int deleteById(Integer id);
}
